// 公共接口
// 引用axios,
import { request, GET, POST } from "./config/axios";

// 工厂总览信息
export const getFactoryList = (data) => request(GET, "/bigview/factory/list", undefined, data);
// 运行天数
export const getWorkday = (data) => request(GET, "/bigview/safety/workday", undefined, data);
// 废气处理指标符合率
export const safetyGas = (data) => request(GET, "/bigview/safety/gas", undefined, data);
// 合规性项目符合率
export const safetyProject = (data) => request(GET, "/bigview/safety/project", undefined, data);
// 污水处理指标符合率列表
export const safetyDisposal = (data) => request(GET, "/bigview/safety/disposal", undefined, data);
// 纠违隐患及时整改率列表
export const safetyRectify = (data) => request(GET, "/bigview/safety/rectify", undefined, data);
// 市场产品得分等级列表
export const qualitySgrade = (data) => request(GET, "/bigview/quality/sgrade", undefined, data);
// 工厂产品得分等级列表
export const qualitFgrade = (data) => request(GET, "/bigview/quality/fgrade", undefined, data);
// 直通率 
export const qualityThrough = (data) => request(GET, "/bigview/quality/through", undefined, data);
// 客诉件数/客诉率列表
export const qualityComplaint = (data) => request(GET, "/bigview/quality/complaint", undefined, data);
// 进货不良率
export const qualityQrate = (data) => request(GET, "/bigview/quality/qrate", undefined, data);
// 工艺符合率 
export const qualityConformrate = (data) => request(GET, "/bigview/quality/conformrate", undefined, data);
// 查询人效 
export const operatePersonnel = (data) => request(GET, "/bigview/operate/personnel", undefined, data);
// 绩效其他指标 
export const operateTarget = (data) => request(GET, "/bigview/operate/target", undefined, data);
// 成品库龄预警 
export const operateStockage = (data) => request(GET, "/bigview/operate/stockage", undefined, data);
// 千包能耗 
export const operateThousand = (data) => request(GET, "/bigview/operate/thousand", undefined, data);
// 七日成品库存 
export const operatePinventory = (data) => request(GET, "/bigview/operate/pinventory", undefined, data);
// 可用库存 
export const serviceInventory = (data) => request(GET, "/bigview/service/inventory", undefined, data);
// 订单及新品铺
export const serviceNewproduct = (data) => request(GET, "/bigview/service/newproduct", undefined, data);
// 成品出货配送在途追踪列表
export const serviceIntransit = (data) => request(GET, "/bigview/service/intransit", undefined, data);
// 提货到货及时率
export const serviceTimeliness = (data) => request(GET, "/bigview/service/timeliness", undefined, data);
// 排单及出货速度
export const serviceSchedule = (data) => request(GET, "/bigview/service/schedule", undefined, data);
// 应该出未出 
export const serviceOut = (data) => request(GET, "/bigview/service/out", undefined, data);


// 生产管理 
export const workshopProduction = (data) => request(GET, "/bigview/board/workshop/production", undefined, data);
// 人效管理 
export const workshopPersonnel = (data) => request(GET, "/bigview/board/workshop/personnel", undefined, data);
// 品控管理 
export const workshopQuality = (data) => request(GET, "/bigview/board/workshop/quality", undefined, data);
// 安全 
export const workshopWorkday = (data) => request(GET, "/bigview/board/workshop/workday", undefined, data);
// 设备管理 
export const workshopDevice = (data) => request(GET, "/bigview/board/workshop/device", undefined, data);
// 能源管理 
export const workshopEnergy = (data) => request(GET, "/bigview/board/workshop/energy", undefined, data);
// 能耗 
export const workshopEnergyUsed = (data) => request(GET, "/bigview/board/workshop/energyUsed", undefined, data);
// 能耗趋势 
export const workshopTendency = (data) => request(GET, "/bigview/board/workshop/tendency", undefined, data);

// 生产管理 
export const lineProduction = (data) => request(GET, "/bigview/board/line/production", undefined, data);
// 人效管理 
export const linePersonnel = (data) => request(GET, "/bigview/board/line/personnel", undefined, data);
// 品控管理 
export const lineQuality = (data) => request(GET, "/bigview/board/line/quality", undefined, data);
// 安全 
export const lineWorkday = (data) => request(GET, "/bigview/board/line/workday", undefined, data);
// 设备管理 
export const lineDevice = (data) => request(GET, "/bigview/board/line/device", undefined, data);
// 能源管理 
export const lineEnergy = (data) => request(GET, "/bigview/board/line/energy", undefined, data);
// 能耗 
export const lineEnergyUsed = (data) => request(GET, "/bigview/board/line/energyUsed", undefined, data);
// 能耗趋势 
export const lineTendency = (data) => request(GET, "/bigview/board/line/tendency", undefined, data);
// 用能总金额 
export const lineAmount = (data) => request(GET, "/bigview/board/line/amount", undefined, data);
// 耗资差异率 
export const lineUsedDiff = (data) => request(GET, "/bigview/board/line/usedDiff", undefined, data);
// 24小时用电峰谷 
export const lineElectro = (data) => request(GET, "/bigview/board/line/electro", undefined, data);
